.class Lcom/melesta/payment/PaymentExpansion$1;
.super Ljava/lang/Object;
.source "PaymentExpansion.java"

# interfaces
.implements Lcom/melesta/payment/interfaces/IListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/payment/PaymentExpansion;->onActivitySateChange(Lcom/melesta/expansions/ActivityState;Landroid/content/Context;Landroid/os/Handler;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/payment/PaymentExpansion;

.field final synthetic val$context:Landroid/content/Context;


# direct methods
.method constructor <init>(Lcom/melesta/payment/PaymentExpansion;Landroid/content/Context;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 49
    iput-object p1, p0, Lcom/melesta/payment/PaymentExpansion$1;->this$0:Lcom/melesta/payment/PaymentExpansion;

    iput-object p2, p0, Lcom/melesta/payment/PaymentExpansion$1;->val$context:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onCancel(Ljava/lang/String;)V
    .locals 0
    .parameter "name"

    .prologue
    .line 69
    return-void
.end method

.method public onError(Ljava/lang/String;ILjava/lang/String;)V
    .locals 0
    .parameter "name"
    .parameter "errorCode"
    .parameter "error"

    .prologue
    .line 65
    return-void
.end method

.method public onPurchase(Ljava/lang/String;IJ)V
    .locals 6
    .parameter "name"
    .parameter "count"
    .parameter "internalId"

    .prologue
    const/4 v5, 0x0

    .line 52
    if-nez p2, :cond_0

    .line 60
    :goto_0
    return-void

    .line 54
    :cond_0
    iget-object v3, p0, Lcom/melesta/payment/PaymentExpansion$1;->val$context:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    .line 55
    .local v1, resources:Landroid/content/res/Resources;
    const-string v3, "string"

    iget-object v4, p0, Lcom/melesta/payment/PaymentExpansion$1;->val$context:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, p1, v3, v4}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    .line 56
    .local v0, res:I
    if-nez v0, :cond_1

    .line 57
    sget v0, Lcom/melesta/engine/R$string;->DefaultPurchase:I

    .line 58
    :cond_1
    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v5

    invoke-virtual {v1, v0, v3}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    .line 59
    .local v2, str:Ljava/lang/String;
    iget-object v3, p0, Lcom/melesta/payment/PaymentExpansion$1;->val$context:Landroid/content/Context;

    invoke-static {v3, v2, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method public onRefund(Ljava/lang/String;)V
    .locals 0
    .parameter "name"

    .prologue
    .line 77
    return-void
.end method

.method public onSent(Ljava/lang/String;)V
    .locals 0
    .parameter "name"

    .prologue
    .line 73
    return-void
.end method

.method public updateSkuDetails(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "name"
    .parameter "price"
    .parameter "title"

    .prologue
    .line 82
    return-void
.end method
